<?php
/**
 * Created by PhpStorm
 * User: Jhinwy
 * Date: 6/11/24
 * Time: 3:45 PM
 */

namespace App\Services;

use App\Models\WechatAccount;

class AccountService
{
    /**
     * 账号备注
     *
     * @param $params
     * @return bool
     */
    public function remark($params)
    {
        $userId = $params['user_id'] ?? '';
        $remark = $params['remark'] ?? '';

        $account = WechatAccount::query()->where('user_id', $userId)->first();

        $account->remark = $remark;

        return $account->save();
    }
}
